package com.example.designModel.outlook.process;

/**
 * 外观累
 */
public class Facade {
    SubSystemOne one;
    SubSystemTwo two;
    SubSystemThree three;
    SubSystemFour four;

    public Facade() {
        this.one = new SubSystemOne();
        this.two = new SubSystemTwo();
        this.three = new SubSystemThree();
        this.four = new SubSystemFour();
    }

    public void MethodA() {
        System.out.println("方法组A() -----");
        one.MethodOne();
        two.MethodTwo();
        four.MethodFour();
    }
    public void MethodB() {
        System.out.println("方法组B() -----");
        two.MethodTwo();
        three.MethodThree();
    }
}
